<?
	class Category extends AppModel{
		var $tablePrefix = 'film_';
		var $useTable = 'cat';
		var $primaryKey = 'cat_id';
		var $actsAs = array('Tree');
		public $hasMany = array(
			'Children'=>array(
				'className'=>'Category',
				'foreignKey'=>'sub_id'),
			'Album'=>array(
				'className'=>'Album',
				'foreignKey'=>'album_cat'));
		public $belongsTo = array(
			'Parent'=>array(
				'className'=>'Category',
				'foreignKey'=>'sub_id'));
	}
?>